Apple, the Apple logo, AppleScript, Bento, Macintosh, QuickTime, and OpenDoc are
registered trademarks of Apple Computer, Inc.
Finder, Mac, and QuickDraw are trademarks of Apple Computer, Inc.
SOM, SOMObjects, and System Object Model are licensed trademarks of IBM Corporation.
Promising a non-OpenDoc file
The Drag and Drop mechanism allows the source part to create a non-OpenDoc file when the destination is the Finder or other applications which can accept a file.
Recipes
Initiating a drag:
If the source part puts a promise value of kODHFSPromise type in the contents property of the content storage unit of the ODDragAndDrop object, the Drag and Drop mechanism would ask the source part to fulfill the promise when a drop happens in the Finder or other applications which can accept a file.
The following is the code fragment for creating such a promise. This piece of code is called right before ODDragAndDrop::StartDrag.
Fulfilling the promise / creating the non-OpenDoc file:
In your part editor's FulfillPromise, you should handle the case when the promise value needs to be fulfilled. The following is a code fragment for creating a text file.